{template header}

<div class="container">

 <ol class="breadcrumb">
  <li><a href="{tsUrl('study')}">课程</a></li>
  <li><a href="{tsUrl('study','show',array('id'=>$strStudy['studyid']))}">{$strStudy[studyname]}</a> </li>
  <li class="active">管理</li>
 </ol>



 <div class="panel panel-default">
  <div class="panel-body">


   {template edit_menu}



      <div class="row">
          <div class="col-md-2"></div>
          <div class="col-md-8">


              <form method="POST" action="{SITE_URL}index.php?app=study&ac=edit&ts=lessonadddo" enctype="multipart/form-data">

                  <div class="form-group">
                      <label>课时排序</label>
                      <input type="text" class="form-control" name="orderid" value="{$orderid}">
                  </div>

                  <div class="form-group">
                      <label>课程标题</label>
                      <input type="text" class="form-control" name="title" value="">
                  </div>


                  <div class="form-group">
                      <label>课时介绍</label>
                      <div id="tseditor"></div>
                      <div style="display: none;">
                          <textarea name="content"></textarea>
                      </div>
                      <!--<textarea name="content" id="tseditor"></textarea>-->

                  </div>



                  {if $strStudy['price']>0}
                  <div class="form-group">
                      <label>课时价格</label>

                      <p>
                          <input type="radio" name="isprice" value="1" checked />收费
                          <input type="radio" name="isprice" value="0" />免费

                          (选择免费本课时将免费开放，收费包含在课程中一次性买断)
                      </p>

                  </div>
                  {/if}



                  <div class="form-group">
                      <label>选择视频</label>

                    <p>
                      <select name="videoid">
                          <option value="0">选择视频</option>
                          {loop $arrVideo $key $item}
                          <option value="{$item['videoid']}">{$item['title']}</option>
                          {/loop}
                      </select>
                      (<a href="{tsUrl('study','edit',array('ts'=>'video','studyid'=>$strStudy['studyid']))}">没有视频？</a>)
                    </p>

                  </div>

                  <input type="hidden" name="studyid" value="{$strStudy['studyid']}" />
                  <input type="hidden" name="orderid" value="{$orderid}" />

                  <button type="submit" class="btn btn-success btn-lg">添加课时</button>

                  </form>


          </div>
          <div class="col-md-2"></div>
      </div>
 
 

  
</div>
</div>



</div>
{php doAction('tseditor')}
{template footer}

